var classifier = new vo.newObj({
	el:'#classifier',
	datas:{
	},
	methods:{
		load:function(){
			ajax({
				method:'GET',
				url:'classify/view/'+blog.id,
				success:function(response){
					var datas = response.datas;
					var inner = "";
					for(var index in datas){
						var data = datas[index];
						if(data.articleNum > 0){
							inner +=("<a class='tag-classifier' href='"+basepath+blog.path+"/article/cly/"+data.id+"/list/1'>"+data.name
									+"("+data.articleNum+")</a>");
						}else{
							inner +=("<a class='tag-classifier' href='javascript:void(0);'>"+data.name+"("+data.articleNum+")</a>");
						}
					}
					classifier.setDatas({loading:'',content:inner});
					classifier.flush();
				},
				error:function(){
					var message = "数据加载失败";
					throw new Error(message);
					classifier.setDatas({loading:message});
					classifier.flush();
				}
			});
		}
	}
});
classifier.methods.load();
